import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/code',
    component: () => import('@/layouts/BaseLayout.vue'),
    meta: { title: '代码生成', icon: 'i-tdesign-setting-1' },
    children: [
      {
        path: '/code/mate/project',
        component: () => import('@/views/code/mate/CodeProjectPage.vue'),
        props: true,
        meta: { title: '项目列表', icon: 'i-tdesign-view-list' },
      },
      {
        path: '/code/mate/module/:projectName?',
        component: () => import('@/views/code/mate/CodeModulePage.vue'),
        props: true,
        meta: { title: '项目模块', icon: 'i-tdesign-view-list' },
      },

    ],
  },
]
export default routes
